<%@ page isELIgnored="false"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<%
    // Java代码放这里
%>
<!DOCTYPE html>
<html>
<head>
    <!-- 导入资源 -->
    <%@ include file="resource.jsp"%>
    <!-- Javascript代码放这里 -->
    <script></script>
    <!-- 自定义样式放这里 -->
    <style></style>
</head>
<body>
<!-- 导入页头 -->
<%@ include file="header.jsp"%>
<div class="container" style="margin:24px auto;">
    <div class="row">
        <h2 class="text-center">Sign Out</h2>
        <div class="text-center">
            <p>&nbsp;</p>
            <h4><span>${sessionScope.userVo.username}</span>
                Sign out successfully !</h4>
            <p>3 seconds later will go to Home Page</p>
            <!-- 移除用户登录 -->
            <% session.removeAttribute("userVo"); %>
            <p>&nbsp;</p>
        </div>
    </div><!-- end of row -->
</div><!-- end of container -->
<!-- 导入页脚 -->
<%@ include file="footer.jsp"%>
</body>
</html>
<script>
    $(document).ready(function(){
        // setTimeout(function(){//函数},n) 表示等待n毫秒后，执行函数
        setTimeout(function(){
            window.location = "index.jsp";
        },3000);
    });
</script>
